
package com.atguigu.test2.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther zzyy
 * @create 2021-06-10 15:55
 */
@RestController
@Slf4j
public class OrderController
{
    @Value("${server.port}")
    private String port;

    @RequestMapping(value ="/order/index",method = RequestMethod.GET)
    public String index()
    {
        log.info("服务端口号:{}",port);
        return "服务端口号: "+"\t"+port;
    }
}
 